import Vue from 'vue'
<<<<<<< HEAD
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const Index = () => import("@/views/index/index")
const Cars = () => import("@/views/cars/cars")
const User = () => import("@/views/user/user")
const Safe = () => import("@/views/safe/safe")

const routes = [
  {
    path: '/',
    component: Index,
    name: "Index",
    children: [
      { path: '/cars', name: "cars", component: Cars },
      { path: '/user', name: "user", component: User },
      { path: '/safe', name: "Safe", component: Safe },
    ]
  },
]

const router = new VueRouter({
  routes,
  mode: "history"
})

export default router
=======
import Router from 'vue-router'

Vue.use(Router)

import Layout from '@/layout/index'

export default new Router({
  mode: "history",
  routes: [
    {
      path: '/',
      name: "login",
      component: () => import('@/views/login/index'),
      hidden: true
    },

    {
      path: '/404',
      component: () => import('@/views/error/404'),
      hidden: true
    },
    {
      path: '/carsBrand',
      component: Layout,
      children: [
        // 停车场
        { path: '/parkingList', component: () => import('@/views/parking/parkingList'), },
        { path: '/parkingAdd', component: () => import('@/views/parking/parkingAdd'), },
        // 车辆品牌
        { path: '/carsBrand', component: () => import('@/views/carsBrand/index'), },
        // 车辆管理
        { path: '/carsList', component: () => import('@/views/cars/carsList'), },
        { path: '/carsAttr', component: () => import('@/views/cars/carsAttr'), },
        { path: '/carsAdd', component: () => import('@/views/cars/carsAdd'), },
        // 销售管理
        { path: '/order', component: () => import('@/views/order/index'), },
        // 会员管理
        { path: '/member', component: () => import('@/views/member/index'), },
        // 订单管理
        { path: '/sale', component: () => import('@/views/sale/index'), },
      ]
    },
  ]
})
>>>>>>> 103eb3ad054c9ab96a8d469a8b9b68e43ae3ea0a
